package com.tiger.cloud.service.system;

import java.util.List;

import org.quartz.SchedulerException;

import com.tiger.cloud.model.system.SysScheduleJob;

public interface IScheduleJobService {

	void addTask(SysScheduleJob job) throws SchedulerException;

	void changeStatus(String jobId, String cmd) throws SchedulerException;

	void updateCron(String jobId, String cron) throws SchedulerException;

	void addJob(SysScheduleJob job) throws SchedulerException;

	List<SysScheduleJob> getAllJob() throws SchedulerException;

	List<SysScheduleJob> getRunningJob() throws SchedulerException;

	void pauseJob(SysScheduleJob scheduleJob) throws SchedulerException;

	void resumeJob(SysScheduleJob scheduleJob) throws SchedulerException;

	void deleteJob(SysScheduleJob scheduleJob) throws SchedulerException;

	void runAJobNow(SysScheduleJob scheduleJob) throws SchedulerException;

	void updateJobCron(SysScheduleJob scheduleJob) throws SchedulerException;

}
